package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DormitoryAbsenceMapper;
import com.ruoyi.system.domain.DormitoryAbsence;
import com.ruoyi.system.service.IDormitoryAbsenceService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-11
 */
@Service
public class DormitoryAbsenceServiceImpl implements IDormitoryAbsenceService 
{
    @Autowired
    private DormitoryAbsenceMapper dormitoryAbsenceMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param absentId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public DormitoryAbsence selectDormitoryAbsenceByAbsentId(Long absentId)
    {
        return dormitoryAbsenceMapper.selectDormitoryAbsenceByAbsentId(absentId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param dormitoryAbsence 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DormitoryAbsence> selectDormitoryAbsenceList(DormitoryAbsence dormitoryAbsence)
    {
        return dormitoryAbsenceMapper.selectDormitoryAbsenceList(dormitoryAbsence);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param dormitoryAbsence 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDormitoryAbsence(DormitoryAbsence dormitoryAbsence)
    {
        return dormitoryAbsenceMapper.insertDormitoryAbsence(dormitoryAbsence);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param dormitoryAbsence 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDormitoryAbsence(DormitoryAbsence dormitoryAbsence)
    {
        return dormitoryAbsenceMapper.updateDormitoryAbsence(dormitoryAbsence);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param absentIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDormitoryAbsenceByAbsentIds(Long[] absentIds)
    {
        return dormitoryAbsenceMapper.deleteDormitoryAbsenceByAbsentIds(absentIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param absentId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDormitoryAbsenceByAbsentId(Long absentId)
    {
        return dormitoryAbsenceMapper.deleteDormitoryAbsenceByAbsentId(absentId);
    }
}
